# !/usr/bin/env python
# -*- coding: UTF-8 -*-
# -------------------------------------------------------------------
import os
ugettext = lambda s:s
# -----------------------------------------------------------------------------
# Configuración
# -----------------------------------------------------------------------------
debug=True
template_debug=True
manager = (
        ('author','author@email.com'),
    )
app_root =  os.path.abspath(os.path.dirname(__file__))
# -----------------------------------------------------------------------------
# Base de datos
# -----------------------------------------------------------------------------
database_engine='sqlite3'  	# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
database_name='db.sqlite'  	# Or path to database file if using sqlite3.
database_user=''			# Not used with sqlite3.
database_password=''		# Not used with sqlite3.
database_host=''			# Set to empty string for localhost. Not used with sqlite3.
database_port=''			# Set to empty string for default. Not used with sqlite3.
# -----------------------------------------------------------------------------
# Urls
# -----------------------------------------------------------------------------
media_root=os.path.join(app_root, 'media/')
media_url = 'http://localhost:8000/media/'
admin_media_prefix ='/adm_media/'
# -----------------------------------------------------------------------------
# Cache y Sessión
# -----------------------------------------------------------------------------
cache_backend = 'locmem:///'
cache_prefix='_'
cache_seconds=300
session_engine='django.contrib.sessions.backends.file'
secret_key='secretkey'
# -----------------------------------------------------------------------------
# Templates
# -----------------------------------------------------------------------------
template_dirs = (
    os.path.join(app_root,'templates/'),
)

# -----------------------------------------------------------------------------
# Idiomatización
# -----------------------------------------------------------------------------
language_code = 'es-es'
languages = (
    ('en', ugettext('English')),
    ('es', ugettext('Spanish')),
    ('ca', ugettext('Catalan')),
)
time_zone = 'Europe/Madrid'
site_id = 1
use_i18n = True
# -----------------------------------------------------------------------------
# Copyright
# -----------------------------------------------------------------------------
copyright='gpl'

# -----------------------------------------------------------------------------
# logging configuration
# -----------------------------------------------------------------------------
import logging
logging.basicConfig(
    filename='the_filename_log_output.log',
    format="%(asctime)s-%(levelname)s-%(name)s-%(lineno)s-%(message)s",
    level = logging.INFO,
)